home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / sa29200.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  849 b   |  45 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. ENTRY(start)
  4.  
  5. SECTIONS {
  6.   .text ${RELOCATING+${TEXT_START_ADDR}} : 
  7.     {
  8.     *(.text);
  9.     *(.text1);
  10.     *(.text2);
  11.     ${RELOCATING+_etext = .};
  12.     }
  13.   .lit ALIGN(4) :
  14.    {
  15.     *(.lit);
  16.     ${RELOCATING+_elit = .};
  17.    }
  18.   .data ALIGN(4) :
  19.     {
  20.     *(.data);
  21.     *(.data1);
  22.     *(.data2);
  23.     ${RELOCATING+_edata = .};
  24.     ${CONSTRUCTING+CONSTRUCTORS}
  25.     ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
  26.     ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
  27.     ${CONSTRUCTING+ *(.ctors)}
  28.     ${CONSTRUCTING+ LONG(0)}
  29.     ${CONSTRUCTING+ ___CTOR_END__ = .;}
  30.     ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
  31.     ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)}
  32.     ${CONSTRUCTING+ *(.dtors)}
  33.     ${CONSTRUCTING+ LONG(0)}
  34.     ${CONSTRUCTING+ ___DTOR_END__ = .;}
  35.     }
  36.  
  37.   .bss  ALIGN(4) :
  38.     { 
  39.     *(COMMON)     
  40.     *(.bss)
  41.     ${RELOCATING+_end = .};
  42.     } 
  43. }
  44. EOF
  45.